#include "vars.h"

int32_t photo_quality = 100;
int32_t select_pixel = 0;
bool use_tinyusb = false;
bool save__button_statue = true;
char now_time_str[100] = { 0 };

const char *get_var_now_time_str() {
    return now_time_str;
}

void set_var_now_time_str(const char *value) {
    strncpy(now_time_str, value, sizeof(now_time_str) / sizeof(char));
    now_time_str[sizeof(now_time_str) / sizeof(char) - 1] = 0;
}

bool get_var_save__button_statue()
{
    return save__button_statue;
}

void set_var_save__button_statue(bool value)
{
    save__button_statue = value;
}

bool get_var_use_tinyusb()
{
    return use_tinyusb;
}

void set_var_use_tinyusb(bool value)
{
    use_tinyusb = value;
}

int32_t get_var_photo_quality()
{
    return photo_quality;
}

void set_var_photo_quality(int32_t value)
{
    photo_quality = value;
}

int32_t get_var_select_pixel()
{
    return select_pixel;
}

void set_var_select_pixel(int32_t value)
{
    select_pixel = value;
}